module.exports = {
  pluginOptions: {
    electronBuilder: {
      nodeIntegration: true,
      builderOptions: {
        productName: "Vue3Electron", //不要出现中文，除非你Apache支持中文路径
        // "appId": "com.xxx.xxx",
        copyright: "Copyright © 2022 electron-builder Demo",
        nsis: {
          perMachine: true,
          oneClick: false, // 是否一键安装
          allowToChangeInstallationDirectory: true, // 允许用户选择安装位置
        },
        win: {
          target: [
            "nsis", // 打包为nsis安装文件
            // 'zip' // 打包为安装文件zip
          ],
        },
        releaseInfo: {
          releaseNotes: "更新的内容说明", // 更新的内容
        },
        publish: [
          {
            provider: "generic",
            url: "http://localhost/release/", //更新服务器地址,可为空
          },
        ],
      },
    },
  },
};
